package indi.kider.server.applet.service;


import indi.kider.server.applet.model.User;
import indi.kider.server.employee.model.AppUser;

public interface UserService {

    /**
     * 登陆
     * @param user
     * @return
     * @throws Exception
     */
    AppUser login (User user) throws Exception;

    /**
     * 修改密码
     * @param user
     * @return
     * @throws Exception
     */
    String modify(User user) throws Exception;

    /**
     * 注册
     * @param user
     * @return
     * @throws Exception
     */
    String logon(User user) throws Exception;

    /**
     * 生成验证码，并发送
     * @param user
     * @return sessionId
     * @throws Exception
     */
    String randomNum(User user) throws Exception;

    /**
     * 检查当前手机号是否已经注册
     * @param user
     * @return
     * @throws Exception
     */
    String checkPhone(User user) throws Exception;
}
